﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace HRWEB.Controllers
{
    [Authorize]
    public class TitleController : Controller
    {
        hrdbEntities ent = new hrdbEntities();

        public ActionResult Index()
        {
            string id = HttpContext.Profile["ID"].ToString();
            var s_stories = from es in ent.TTitles where es.FEmployeeID == id orderby es.FValidDate select es;
            return PartialView(s_stories.ToList());
        }

    }
}
